package com.guigu.buy.mapper;

import com.guigu.buy.pojo.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.buy.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    List<Order> selectCustomer(Customer customer);

    Customer selectLogin(@Param("userAccount")String userAccount, @Param("userPassword") String userPassword);

    Customer getById(Integer id);

    int updateUserInfo(Customer customer);
}
